package cn.tom.service;

import cn.tom.entity.Book;
import cn.tom.entity.Order2u;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface BookService{


    List<Book> findPageType(@Param("start") Integer num, @Param("lines") Integer num2, @Param("typeid") Integer num3);

    int getCountType(@Param("typeid") Integer num);

    Book findById(int i);

    List<Book> findLike(@Param("str") String str, @Param("start") int i, @Param("num") int i2);

    int findLikeNum(@Param("str") String str);

    List<Book> findTopSale(int i);

    Book findOne(int i);

    void add(Book book);

    int remove(int i);

    void update(Book book);

    int findRecord(int uid,int bookid);

    int addRecord(@Param("uid") int uid,@Param("bookid")int bookid);

    public List<Book> findAll2();
}
